Real-time Inference
In this section, we design the real-time inference using the Seshat SDK. Assume that we have the recommendation feature view discussed in this section. Make sure you understand it.
Feature View Online Mode
Every feature view has online and offline modes. For inference, we need to set online
to true. So we use the
recommendation feature view we already defined and add online_source
and the online_pipeline
.
Responsibility & Overview
We want to create a feature view that, with a target input address, can fetch from the database similar addresses and features for each address and token. The result should look like this:
address | token | address_sent_count | address_received_count | token_sender_count | token_receiver_count |
---|---|---|---|---|---|
address_1 | token | 10 | 20 | 3000 | 1000 |
This is an example of the data we should get. In this dataset, we know which tokens each user interacts with and some
features about transactions of that address with each token, like address_sent_count
, address_received_token
, and
some features that are just related to the token, like token_sender_count
and token_receiver_token
.